package cn.itcast.nems.student.enumeration;

import cn.itcast.ic.common.exception.v2.bean.BizErrorBody;
import cn.itcast.ic.common.exception.v2.bean.BizStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum StudentErrorBodyEnum implements BizErrorBody {
    STUDENT_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "学生未找到"),
    NOT_COLLAGE(BizStatusEnum.BAD_REQUEST, "只有院校学生才能使用院校优惠"),
    CURRENT_ADDRESS_NOT_CAN_DELETE(BizStatusEnum.BAD_REQUEST, "居住地址不能删除"),
    MAIN_CONTACT_NOT_CAN_DELETE(BizStatusEnum.BAD_REQUEST, "主要联系方式不能删除"),
    CONTACT_INFO_NOT_NULL(BizStatusEnum.BAD_REQUEST, "联系方式不能为空"),
    PHONE_FORMAT_ERROR(BizStatusEnum.BAD_REQUEST, "手机号格式不正确"),
    MAIN_MUST_BE_PHONE(BizStatusEnum.BAD_REQUEST, "主要联系方式必须为手机"),
    EMAIL_FORMAT_ERROR(BizStatusEnum.BAD_REQUEST, "邮箱格式不正确"),

    ;
    private BizStatusEnum status;

    private String message;
}
